package com.wn.service;

import com.wn.bean.Building;
import com.wn.bean.PageVo;
import com.wn.exception.BuildDeleteException;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2024-06-27
 * @desc 蜗牛创想：www.woniuxy.com
 */
public interface IBuildingService {

    List<Building> listAll();

    boolean removeBuild(int id) throws BuildDeleteException;

    boolean updateBuildingById(Building building);

    boolean addBuilding(Building building);

    PageVo pageBuild(int currentPage, int pageSize);
}
